from Student import Student
from Worker import Worker

def main():
    stu = Student("tom", 18, 20, 50, 10000, "12345")
    print(stu)
    print(stu.stuId)
    print(stu._Person__money)
    # 继承了父类中的公有方法操作私有属性
    print(stu.money)
    print("--------------")

    # wor = Worker("lilei", 18, 20, 50)
    # print(wor)


if __name__  == "__main__":
    main()
